/**
 * 
 */
package by.jtraining.london.repo.Impl;

import javax.persistence.EntityManager;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.google.inject.Inject;
import com.google.inject.persist.Transactional;


import by.jtraining.london.model.Admin;

import by.jtraining.london.repo.AdminRepository;

/**
 * @author Pakhomova Irina
 * 
 */
public class AdminRepositoryImpl extends GenericRepositoryImpl<Admin, Long>
		implements AdminRepository {
	private static final Logger LOG = LoggerFactory
			.getLogger(AdminRepositoryImpl.class);
	@Inject
	public AdminRepositoryImpl(EntityManager entityManager) {
		super(entityManager, Admin.class);
	}
	
	@Transactional
	public void add(Admin admin){
		LOG.debug("Trying to persist {}", admin);
		em.persist(admin);
	}
	
}
